<h1>Galería de <%= @cultural_heritage_cultural_heritage.name %> (<%= @cultural_heritage_cultural_heritage.nationalRegistrationCode %>)</h1>
<% if flash[:notice] %>
    <div id="notice"><%= flash[:notice] %></div>
<% end %>
<br/>
<div class="field">
    <b>Descripción</b>
    <%= @cultural_heritage_cultural_heritage.description %>
</div>
<% if @cultural_heritage_cultural_heritage_avatars.size > 0 %>

<br></br>
<table class="paginated_table sorted_table">
  <thead>
  <tr>
     <th>Imagen</th>
      <th>Título</th>
       <th>Descripción</th>
        <th></th>
  </tr>
</thead>
<tbody>
    <% @cultural_heritage_cultural_heritage_avatars.each do |cultural_heritage_cultural_heritage_avatar| %>
    <tr>
      <td><a href="<%=cultural_heritage_cultural_heritage_avatar.avatar.url%>" rel="lightbox[roadtrip]" title=<%=cultural_heritage_cultural_heritage_avatar.title%>><img src=<%=cultural_heritage_cultural_heritage_avatar.avatar.url%> width="100" height="100" /></a></td>
      <td><%=cultural_heritage_cultural_heritage_avatar.title%></td>
      <td><%=cultural_heritage_cultural_heritage_avatar.description%></td>      
      <td>
      <%= link_to image_tag("navi/cross-16-ns.png", :border => 0, :title => 'Eliminar'),{ :action => 'delete_photo', :id => cultural_heritage_cultural_heritage_avatar.id},{:confirm => 'Esta seguro?'} %>
        </td>
    </tr>
    <% end %>
</tbody>
</table>
<% else %>
  <p>Ninguna foto encontrada</p>
<% end %>
<br />

<%= link_to 'Nueva foto',{:action => 'new_photo',:id => @cultural_heritage_cultural_heritage.id}%> 
<%#= link_to 'Regresar',{:action => 'show',:id => @cultural_heritage_cultural_heritage.id}%>